export const dateOptions = [
  {
    label: "开发添加时间",
    value: "dev_add_time",
  },
  {
    label: "开发审核时间",
    value: "dev_review_time",
  },
  {
    label: "物流审核时间",
    value: "logistics_review_time",
  },
  {
    label: "检测时间",
    value: "sample_detection_time",
  },
];

export const personnelOption = [
  {
    label: "添加人",
    value: "create_user",
  },
  {
    label: "开发人",
    value: "developer_id",
  },
  {
    label: "采购人",
    value: "purchaser_id",
  },
  {
    label: "图片处理人",
    value: "img_processor_id",
  },
  {
    label: "编辑处理人",
    value: "editor_id",
  },
  {
    label: "开发审核人",
    value: "dev_reviewer_id",
  },
  {
    label: "物流审核人",
    value: "logistics_reviewer_id",
  },
  {
    label: "产品负责人",
    value: "product_manage_id",
  },
];

export const skuOption = [
  {
    label: "系统SKU",
    value: "sku"
  },
  {
    label: "自定义SKU",
    value: "custom_sku"
  },
  // {
  //   label: "赛盒SKU",
  //   value: "sai_he_sku"
  // },
  {
    label: "辅料SKU",
    value: "accessor_sku"
  },
  {
    label: "组合SKU",
    value: "combination_parent_sku"
  },
  {
    label: "组合子系统SKU",
    value: "combination_sku"
  },
  {
    label: "组合子自定义SKU",
    value: "combination_custom_sku"
  },
  {
    label: "切换SKU",
    value: "alternative_sku_list"
  },
];

export const batchOptions = [
  {
    title: "产品资料修改",
    options: [
      {
        label: "修改产品状态",
        value: 1,
        auth: "/goods/task/product/batchChangeStatus",
      },
      {
        label: "修改认证类型",
        value: 5,
        auth: "/goods/task/product/batchChangeCertificationType",
      },
      {
        label: "修改人员信息",
        value: 12,
        auth: "/goods/task/product/batchChangePersonnelInfo",
      },
      {
        label: "修改重量尺寸",
        value: 16,
        auth: "/goods/task/product/batchChangeWeightSize",
      },
      {
        label: "上传认证证书",
        value: 8,
        auth: "/goods/task/product/batchUploadCertification",
      },
      {
        label: "上传产品说明书",
        value: 9,
        auth: "/goods/task/product/batchUploadProductManual",
      },
      {
        label: "上传证书专利",
        value: 10,
        auth: "/goods/task/product/batchUploadCertificationPatent",
      },
      {
        label: "修改禁售平台/站点",
        value: 13,
        auth: "/goods/task/product/batchChangeProductSign",
      },
      {
        label: "修改推荐平台/站点",
        value: 14,
        auth: "/goods/task/product/batchChangeRecommendationPlatform",
      },
      {
        label: "修改产品等级",
        value: 23,
        auth: "/goods/task/product/updateBasicInfo",
      },
      {
        label: "批量修改产品品牌",
        value: 24,
        auth: "/goods/task/product/batchChangeProductBrand",
      },
    ]
  },
  {
    title: "供应商资料修改",
    options: [
      {
        label: "修改报关信息",
        value: 2,
        auth: "/goods/task/product/batchChangeCustomsInfo",
      },
      {
        label: "修改供应商采购天数",
        value: 15,
        auth: "/goods/task/product/batchChangePurchaseDay",
      },
      {
        label: "修改默认供应商及价格",
        value: 7,
        auth: "/goods/task/product/batchChangeDefaultSupplier",
      },
      {
        label: "修改产品加工说明",
        value: 11,
        auth: "/goods/task/product/batchChangeProductMarking",
      },
      {
        label: "批量修改申报要素",
        value: 19,
        auth: "/goods/task/product/batchChangeDeclarationElement",
      },

    ]
  },
  {
    title: "SPU信息修改",
    options: [
      {
        label: "修改产品分类",
        value: 3,
        auth: "/goods/task/product/batchChangeCategory",
      },
      {
        label: "修改SPU信息",
        value: 4,
        auth: "/goods/task/product/batchChangeSpuInfo",
      },
    ]
  },
  {
    title: "批量小工具",
    options: [
      {
        label: "标签生成",
        value: 17,
        auth: "/goods/task/product/make-label",
      },
      {
        label: "批量提取数据",
        value: 18,
        auth: "/goods/task/product/extract-info",
      },

      {
        label: "推送至兴运",
        value: 20,
        auth: "/goods/task/product/batchPushxingyun",
      },
      {
        label: "批量图片下载",
        value: 21,
        auth: "/goods/task/product/batchImageDownload",
      },
      {
        label: "上传样品检测结果",
        value: 22,
        auth: "/goods/task/product/batchUploadQCResult",
      },
    ]
  },
];

export const purchaseStatusOptions = [
  {
    label: "待提交",
    value: 1
  },
  {
    label: "待审核",
    value: 2
  },
  {
    label: "审核中",
    value: 3
  },
  {
    label: "审核完成",
    value: 4
  },
  {
    label: "已驳回",
    value: 5
  }
];

export const operatorOptions = [
  {
    label: ">",
    value: ">",
  },
  {
    label: "<",
    value: "<",
  },
  {
    label: "=",
    value: "=",
  },
  {
    label: ">=",
    value: ">=",
  },
  {
    label: "<=",
    value: "<=",
  },
]

export const whetherOptions = [
  {
    label: '是',
    value: 1
  },
  {
    label: '否',
    value: 0
  },
]

export const salesStatusOptions = [
  {
    label: 'SKU销售状态',
    value: 'sales_status'
  },
  {
    label: 'SPU销售状态',
    value: 'spu_sales_status'
  },
]

export const supplyStatusOptions = [
  {
    label: 'SKU货源状态',
    value: 'supply_status'
  },
  {
    label: 'SPU货源状态',
    value: 'spu_supply_status'
  },
]

export const cleanProductStatusOptions = [
  {
    label: 'SKU智能清洁产品状态',
    value: 'clean_product_status'
  },
  {
    label: 'SPU智能清洁产品状态',
    value: 'spu_clean_product_status'
  },
]

export const productStatusOptions = [
  {
    label: 'SKU产品状态',
    value: 'product_status'
  },
  {
    label: 'SPU产品状态',
    value: 'spu_status'
  },
]

export const isRefundTaxOptions = [
  {
    label: '是',
    value: 2
  },
  {
    label: '否',
    value: 3
  },
]

export const imageTypeText = [
  {
    "label": "产品图片",
    "value": 3
  },
  {
    "label": "橱窗图",
    "value": 1
  },
  {
    "label": "详情图",
    "value": 2
  },
  {
    "label": "视频",
    "value": 4
  }
]

export const addProductOptions = [
  {
    label: '新增正常产品',
    value: 1,
    auth: "/goods/task/product/add",
  },
  {
    label: '新增配件产品',
    value: 3,
    auth: "/goods/task/product/add",
  },
  {
    label: '新增辅料产品',
    value: 2,
    auth: "/goods/task/product/add",
  },
]

export const monthOptions = [
  {
    label: '1月',
    value: 1
  },
  {
    label: '2月',
    value: 2
  },
  {
    label: '3月',
    value: 3
  },
  {
    label: '4月',
    value: 4
  },
  {
    label: '5月',
    value: 5
  },
  {
    label: '6月',
    value: 6
  },
  {
    label: '7月',
    value: 7
  },
  {
    label: '8月',
    value: 8
  },
  {
    label: '9月',
    value: 9
  },
  {
    label: '10月',
    value: 10
  },
  {
    label: '11月',
    value: 11
  },
  {
    label: '12月',
    value: 12
  },
]

export const regionNameMap = new Map([
  ['goods_spu', 'SPU信息'],
  ['goods_sku_info', 'SKU基础信息'],
  ['goods_sku_weight', '重量尺寸'],
  ['goods_sku_user', '人员'],
  ['goods_sku_attr', 'SKU属性'],
  ['goods_sku_image', 'SKU图片'],
  ['goods_sku_remark', '备注'],
  ['goods_sku_certificate', '证书'],
  ['goods_sku_recommended_platform', '推荐平台'],
  ['goods_sku_description', '描述'],
  ['goods_sku_combination_sku', '组合SKU'],
  ['goods_sku_accessories', '关联辅料'],
  ['goods_sku_supplier', '供应商'],
  ['goods_sku_customs', '报关信息'],
  ['goods_sku_trade_agent', '欧英代信息'],
  ['goods_sku_identification_processing', '产品标识及加工说明'],
  ['goods_sku_relation', '切换SKU'],

  
])

export const accessorTypeOptions = [
  {
    label: '查询辅料SKU',
    value: 1
  },
  {
    label: '查询关联辅料',
    value: 2
  },
]

export const alternativeSKUTypeOptions = [
  {
    label: '是',
    value: 1
  },
  {
    label: '否',
    value: 2
  },
]

export const isStockPrepareOptions = [
  {
    "label": "是",
    "value": 1
  },
  {
    "label": "否",
    "value": 0
  }
]

export const isFactoryDelivertOptions = [
  {
    "label": "是",
    "value": 1
  },
  {
    "label": "否",
    "value": 2
  }
]

export const createCombinationOptions = [
  {
    "label": "开发组合SKU",
    "value": 1
  },
  {
    "label": "拆包组合SKU",
    "value": 3
  }
]